package controller;

import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dao.GetTopSellingProductsDAO;
import databean.ProductBean;

public class GetMostWatchedItemsAction extends Action{

	@Override
	public String perform(HttpServletRequest request,
			HttpServletResponse response) {
		
		List<ProductBean> products = GetTopSellingProductsDAO.getTopSellingProducts();

		request.setAttribute("items", products);
		
		return "getMostWatchedItems.view";
	}

}
